package com.zhentao.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 预约须知表
 * @TableName appointment_notices
 * @author zhentao
 * @since 2024-01-01
 */
@TableName(value ="appointment_notices")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AppointmentNotices implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 须知标题
     */
    @TableField("notice_title")
    private String noticeTitle;

    /**
     * 须知内容
     */
    @TableField("notice_content")
    private String noticeContent;

    /**
     * 须知类型(general:一般,policy:政策,requirement:要求)
     */
    @TableField("notice_type")
    private String noticeType;

    /**
     * 高亮显示文本
     */
    @TableField("highlight_text")
    private String highlightText;

    /**
     * 排序顺序
     */
    @TableField("sort_order")
    private Integer sortOrder;

    /**
     * 状态(1:正常,0:停用)
     */
    @TableField("status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 逻辑删除标志：1-已删除，0-未删除
     */
    @TableLogic
    @TableField("deleted")
    private Integer deleted;
}